<template>
  <!--  微课堂后台头部-->
  <div class="header-after-header">
    <div class="header-after-header-left">
      <h3 style="color: deepskyblue; display: block">微课堂后台管理</h3>
    </div>

    <!--    下拉菜单-->
    <div style="margin-top: 20px; margin-right: 30px">
      <el-dropdown>
        <span class="el-dropdown-link">
          欢迎您, {{ username }}
          <el-icon class="el-icon--right">
            <arrow-down />
          </el-icon>
        </span>
        <template #dropdown>
          <el-dropdown-menu>
            <el-dropdown-item @click="toHomePage">退出系统</el-dropdown-item>
          </el-dropdown-menu>
        </template>
      </el-dropdown>
    </div>
  </div>
</template>

<script>
import { ref } from "vue";
const input2 = ref("");

export default {
  name: "Header_after",
  methods: {
    toHomePage() {
      this.$router.push({ path: "/" });
    },
  },
  data() {
    return {
      username: "张三",
    };
  },
  setup() {
    return {
      ref,
    };
  },
};
</script>

<style scoped></style>
